/*
 * --------------------------------------
 * TODO Kinetic Scroll
 * --------------------------------------

	Best ScreenSnap:
	C:\Private\2000a582

	Best Timer:
	C:\Private\20012550

	FreeiSMS (and hide from gallery of possible):
	C:\Data\FreeiSMS

	Gallery-Order:
	C:\Private\101f8857\CLFCollections.dat
	E:\Private\101f8857\CLFCollections.dat
	F:\Private\101f8857\CLFCollections.dat

	MameXM (and hide from gallery of possible):
	C:\Data\MameXM

	PowerBoot:
	C:\Private\20008a14

	RAMblow:
	C:\Private\a000a5c1

	Resco PhotoViewer:
	C:\Private\2000737e

	Widgetizer (and hide from gallery of possible):
	C:\Data\apps\Widgetizer
 * 
 */

#include "main.h"
#include "MyWidget.h"
#include "myhelp.h"
#include <QDir>
#include <QDebug>
#include "common.h"
#include "filelogger.h"
#include "MyMessageBox.h"

// #include <QMessageBox>

int main(int argc, char *argv[])
	{
	__LOGSTR_TOFILE("-----------------");
	__LOGSTR_TOFILE("Starting MainL...");
	QApplication app(argc, argv);

	MyWidget widget;

	TInt result = 0;
	pathbackup = KPathBackup;
	QDir path(pathbackup);

	if (!path.exists())
		{
		__LOGSTR_TOFILE("Backup Directory not exist...");
		result = path.mkdir(pathbackup);
		__LOGSTR_TOFILE1("Creation backup directory: %d", result);
		}
	else
		{
		__LOGSTR_TOFILE("Backup Directory exist...");
		}
	app.setApplicationName("StartBackup");

	widget.check();
	widget.showFullScreen();
	// widget.showMaximized(); // Deleted by Qt 4.7 rc1
	return app.exec();
	}
